package com.schrodinger.zbdp.common.util;

import java.util.Map;

import com.schrodinger.zutil.property.PropertiesLoader;


public class ZbdpPropertiesUtils {

	public static Map<String,String> proMap = null;

	static {
		try {
			proMap = PropertiesLoader.load("/ZbdpPropertiesConfig.properties");
		} catch (Exception e) {
			e.printStackTrace();
		}
		String path;
		try {
			path = ZbdpPropertiesUtils.get("SupportPropertiesPath");
			Map<String,String> tempMap = PropertiesLoader.load(path);
			proMap.putAll(tempMap);
		} catch (Exception e) {
		}
	}

	public static String get(String key){
		return (String) proMap.get(key);
	}
	
	public static void set(String key, String value) {
		proMap.put(key, value);
	}
}
